-
Notifications
You must be signed in to change notification settings - Fork 2.5k
[CALCITE-5094] Calcite JDBC Adapter and Avatica should support MySQL UNSIGNED types of TINYINT, SMALLINT, INT, BIGINT #4424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Let me know when this is ready for review |
a25a012 to
ec836d0
Compare
|
Hi @mihaibudiu, thank you for your attention to this PR. I have some questions about JDBC Adapter testing. In order to test MySQL UNSIGNED types, I need to create a table in MySQL that contains UNSIGNED types of TINYINT, SMALLINT, INT, BIGINT, but I find it difficult to add a table in JdbcTest or JdbcAdapterTest. Do you have experience with similar testing, I would really appreciate it if you could provide some help. |
|
In addition, I tested the MySQL UNSIGNED types locally by writing a Calcite JDBC Demo. These types can be returned normally without throwing a NumberOutOfRange exception. |
|
This is a good question: what is the semantics of various operations on unsigned numbers? |
|
I have never written tests that involve JDBC in Calcite directly. |
|
You can refer to MY_DB_SCHEMA to construct the column about unsigned. |
Thank you for your remind. |
|
This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 90 days if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the [email protected] list. Thank you for your contributions. |
|
Do you plan to continue this work? |
Hi @mihaibudiu @xiedeyantu , I have add jdbc test for MySQL unsigned type, it can execute successfully on mysql local machine with |
|
Could you please help merge apache/calcite-avatica#275? After avatica is released, I will replace avatica in calcite with the release version and then merge this PR. |
349c102 to
1df54bf
Compare
ac5b95b to
12354eb
Compare
|
Hi @mihaibudiu @xiedeyantu, could you please review this PR? I have upgraded |
|
I think we should keep Avatica upgrade separately, done via its dedicated ticket CALCITE-7183 |
|
I submitted this PR #4564 |
|
Thank you @rubenada for your suggestion, I'll pay attention next time. Thanks @xiedeyantu for submitting the PR. |
12354eb to
7dd00a3
Compare
|
It seems something went wrong with the CI. I reran all the CI jobs to see if they pass. |
|
Please rebase on main and ask for a new review when ready |
Hi @mihaibudiu, I have rebased on main, thanks to @xiedeyantu for helping with rerun, and now CI has passed. |
testkit/src/main/java/org/apache/calcite/test/CalciteAssert.java
Outdated
Show resolved
Hide resolved
…UNSIGNED types of TINYINT, SMALLINT, INT, BIGINT
35cac43 to
0b4c98a
Compare
|



For more details, refer jira: https://issues.apache.org/jira/browse/CALCITE-5094